import Vue from 'vue'
import Router from 'vue-router'
import {
    Layout,
    Content
} from "../layout"; // 页面整体布局
import {
    topRouterMap
} from "./topRouter";
import { TOP } from "@/utils/constants"
// process.env.NODE_ENV === "development" ? Vue.use(Router) : null;
Vue.use(Router)
function filterTopRouterMap(name) {
    let router = topRouterMap.find((item) => {
        return item.parentName === name;
    });
    return router.data; // arr
}

/**
 * 1、roles:后台返回的权限结构;
 * 
 */
//手动跳转的页面白名单
const whiteList = [
    '/'
];
/**
 * path:''与path:'*'的区别：
 * 1、path:'*', 会匹配所有路径asyncRouterMap
 * 2、path:''，也是会匹配到路由
 * 
 */
//默认不需要权限的页面
export const constantRouterMap = [{
    path: '',
    component: Layout,
    redirect: '/index/index',
    hidden: true
},
{
    path: '/login',
    name: 'login',
    component: () =>
        import('@/page/login'),
    hidden: true
},
{
    path: '/register',
    name: 'register',
    component: () =>
        import('@/page/login/register'),
    hidden: true
},
{
    path: '/ret',
    name: 'ret',
    component: () =>
        import('@/page/ret'),
    hidden: true
},
{
    path: '/rateIndex',
    name: 'rateIndex',
    component: () =>
        import('@/page/serve_rate/rateIndex'),
    hidden: true
},
{
    path: '/orderList',
    name: 'orderList',
    component: () =>
        import('@/page/serve_rate/orderList'),
    hidden: true
},
{
    path: '/resultPage',
    name: 'resultPage',
    component: () =>
        import('@/page/serve_rate/resultPage'),
    hidden: true
},
{
    path: '/404',
    component: () =>
        import('@/page/errorPage/404'),
    hidden: true
},
{
    path: '/401',
    component: () =>
        import('@/page/errorPage/401'),
    hidden: true
},
{
    path: '/index',
    name: 'index',
    component: Layout,
    meta: {
        title: '首页',
        icon: 'iconfont icon-shouyetubiao-06',
    },
    noDropdown: true,
    belongs: TOP.INDEX,
    children: [{
        path: 'index',
        name: 'index',
        meta: {
            title: '首页',
            icon: 'iconfont icon-shouyetubiao-06',
            routerType: 'leftmenu',
            tracker: 'P66'
        },
        component: () =>
            import('@/page/index/index'),
    },
        // {
        //     path: 'userCenter',
        //     name: 'userCenter',
        //     component: () =>
        //         import('@/page/infoManage/userCenter'),
        //     hidden: true
        // },
    ]
},
{
    path: '/waybill',
    component: Layout,
    name: 'waybill',
    meta: {
        title: '运单管理',
        icon: 'iconinfo'
    },
    belongs: TOP.TRANSPORT_M,
    hidden: true,
    children: [
        {
            path: 'waybillDetail',
            name: 'waybillDetail',
            component: () =>
                import('@/page/waybill/waybillDetailPage/index.vue'),
            meta: {
                tracker: 'P4',
                title: '运单详情',
            }
        },

    ]

},
// 公司管理
{
    path: '/companymanagement',
    component: Layout,
    name: 'companymanagement',
    meta: {
        title: '公司管理',
        icon: 'iconfont icon-gongsiguanli'
    },
    hidden: true,
    belongs: TOP.OPERATE_M,
    children: [{
        path: 'chargingrules',
        name: 'chargingrules',
        component: () =>
            import('@/page/companymanagement/chargingrules'),
        meta: {
            title: '',
        }
    }, {
        path: 'datatransfer',
        name: 'datatransfer',
        component: () =>
            import('@/page/companymanagement/datatransfer'),
        meta: {
            title: '',
        }
    }],
},
//财务管理的页面
{
    path: '/finance',
    component: Layout,
    name: 'finance',
    meta: {
        title: '财务管理',
        icon: 'iconfont icon-caiwu'
    },
    belongs: TOP.FINANCE_M,
    hidden: true,
    children: [{
        path: 'reimburSement/reimburSementadd',
        name: 'reimburSementadd',
        component: () =>
            import('@/page/finance/reimburSement/reimburSementadd'),
        meta: {
            title: '',
        }
    },
    {
        path: 'reserveMoney/reserveMoneyadd',
        name: 'reserveMoneyadd',
        component: () =>
            import('@/page/finance/reserveMoney/reserveMoneyadd'),
        meta: {
            title: '',
        }
    },
    {
        path: 'paymentReq/paymentReqAdd',
        name: 'paymentReqAdd',
        component: () =>
            import('@/page/finance/paymentReq/paymentReqAdd'),
        meta: {
            title: '',
        }
    },
    {
        path: 'thecarrierPays/thecarrierPaysadd',
        name: 'thecarrierPaysadd',
        component: () =>
            import('@/page/finance/thecarrierPays/thecarrierPaysadd'),
        meta: {
            title: '',
        }
    },
    {
        path: 'receiptManage/receiptManageadd',
        name: 'receiptManageadd',
        component: () =>
            import('@/page/finance/receiptManage/receiptManageadd'),
        meta: {
            title: '',
        }
    },
    {
        path: 'useStamps/useStampsAdd',
        name: 'useStampsAdd',
        component: () =>
            import('@/page/finance/useStamps/useStampsAdd'),
        meta: {
            title: '',
        }
    },
    {
        path: 'purChase/purChaseadd',
        name: 'purChaseadd',
        component: () =>
            import('@/page/finance/purChase/purChaseadd'),
        meta: {
            title: '',
        }
    },
    {
        path: 'ztoRechargeApply/ztoRechargeAdd',
        name: 'ztoRechargeAdd',
        component: () =>
            import('@/page/finance/ztoRechargeApply/ztoRechargeAdd'),
        meta: {
            title: '',
        }
    },
    ]

},

{
    path: '/filemange',
    component: Layout,
    name: 'filemange',
    meta: {
        title: '文件管理',
        icon: 'iconfont icon-weixiushenqing-banshou-01'
    },
    belongs: TOP.QUALITY_M,
    hidden: true,
    children: [
        {
            path: 'qualityFile',
            name: 'qualityFile',
            component: () =>
                import('@/page/qms/filemanage/qualityFile'),
            meta: {
                title: '',
                icon: 'iconfont icon-jilu'
            }
        },
    ]
},
{
    path: '/trainmanage',
    component: Layout,
    name: 'trainmanage',
    meta: {
        title: '培训管理',
        icon: 'iconfont icon-weixiushenqing-banshou-01'
    },
    belongs: TOP.QUALITY_M,
    hidden: true,
    children: [
        {
            path: 'train',
            name: 'train',
            component: () =>
                import('@/page/qms/trainmanage/train'),
            meta: {
                title: '培训计划',
                icon: 'iconfont icon-jilu'
            }
        },
        {
            path: 'fileTemplateList',
            name: 'fileTemplateList',
            component: () =>
                import('@/page/qms/trainmanage/fileTemplateList'),
            meta: {
                title: '培训',
                icon: 'iconfont icon-jilu'
            }
        },
    ]
},
{
    path: '/examinemanage',
    component: Layout,
    name: 'examinemanage',
    meta: {
        title: '考核管理',
        icon: 'iconfont icon-weixiushenqing-banshou-01'
    },
    belongs: TOP.QUALITY_M,
    hidden: true,
    children: [

        {
            path: 'paperpage',
            name: 'paperpage',
            component: () =>
                import('@/page/qms/examinemanage/paper/paperpage'),
            meta: {
                title: '试卷设计',
                icon: 'iconfont icon-jilu'
            }
        },
        {
            path: 'exampage',
            name: 'exampage',

            component: () =>
                import('@/page/qms/examinemanage/examRecord/exampage'),
            hidden: true,
            meta: {
                title: '考试',
                icon: 'iconfont icon-jilu'
            }
        },


    ]
},
{
    path: '/capamanage',
    component: Layout,
    name: 'capamanage',
    meta: {
        title: '异常事件管理',
        icon: 'iconfont el-icon-warning'
    },
    belongs: TOP.QUALITY_M,
    hidden: true,
    children: [
        {
            path: 'capaEdit',
            name: 'capaEdit',
            leve: "capamanage",
            component: () =>
                import('@/page/qms/capamanage/capaEdit'),
            meta: {
                title: 'capa管理',
                icon: 'iconfont icon-jilu'
            },
            hidden: true,
        },


    ]
},
{
    path: '/auditmanage',
    name: 'auditmanage',
    component: Layout,
    meta: {
        title: '审计管理',
        icon: 'iconfont el-icon-warning',
    },
    belongs: TOP.QUALITY_M,
    hidden: true,
    children: [{
        path: 'auditEdit',
        name: "auditEdit",
        leve: "auditmanage",
        meta: {
            title: '审计管理',
            icon: 'iconfont el-icon-warning',
        },
        component: () =>
            import('@/page/qms/auditmanage/auditEdit'),
    }]
},
{
    path: '/verifymanage',
    name: 'verifymanage',
    leve: 1,
    component: Layout,
    meta: {
        title: '验证管理',
        icon: 'iconfont icon-zhanghaoguanli',
    },
    belongs: TOP.QUALITY_M,
    hidden: true,
    children: [{
        path: 'verifyEdit',
        name: "verifyEdit",
        limits: "/api/verify/record/list",
        leve: "verifymanage",
        meta: {
            title: '验证管理',
            icon: 'iconfont icon-zhanghaoguanli',
            routerType: 'leftmenu',
            tracker: 'P1'
        },
        component: () =>
            import('@/page/qms/verifymanage/verifyEdit'),
    }]
},
{
    path: '/newsmanage',
    name: 'newsmanage',
    hidden: true,
    component: Layout,
    belongs: TOP.OPERATE_M,
    meta: {
        title: '资讯管理',
        icon: 'iconfont icon-zhanghaoguanli',
    },
    children: [{
        path: 'newsEdit',
        name: "newsEdit",
        limits: "/api/news/information/list",
        leve: "newsmanage",
        meta: {
            title: '资讯',
            icon: 'iconfont icon-jilu',
            routerType: 'leftmenu',
            tracker: 'P1'
        },
        component: () =>
            import('@/page/app/newsmanage/newsEdit'),
    }]
},
{
    path: '/insuremanage',
    name: 'insuremanage',
    hidden: true,
    component: Layout,
    belongs: TOP.OPERATE_M,
    meta: {
        title: '保险',
        icon: 'iconfont icon-zhanghaoguanli',
    },
    children: [{
        path: 'compensationEdit',
        name: "compensationEdit",
        limits: "/api/saas_company/list",
        leve: "insuremanage",
        meta: {
            title: '理赔管理',
            icon: 'iconfont icon-jilu',
            routerType: 'leftmenu',
            tracker: 'P1'
        },
        component: () =>
            import('@/page/app/insuremanage/compensationEdit'),
    }]
},
]

//注册路由
export default new Router({
    mode: 'history', // 默认为'hash'模式
    base: '/permission/', // 添加跟目录,对应服务器部署子目录
    routes: constantRouterMap,
})

//异步路由（需要权限的页面）
export const asyncRouterMap = [
    {
        path: '/screen',
        name: 'screen',
        component: Content,
        meta: {
            title: '可视化大屏',
            icon: 'iconfont el-icon-data-board',
        },
        belongs: TOP.INDEX,
        children: [
            {
                path: 'screenOperate',
                name: 'screenOperate',
                limits: "/api/data/view/operate/count",
                leve: "screen",
                component: () =>
                    import('@/page/screen/operate'),
                meta: {
                    title: '运营大屏',
                    icon: 'iconfont el-icon-data-line',
                    tracker: 'P47'
                }
            },
            {
                path: 'screenBusiness',
                name: 'screenBusiness',
                limits: "/api/report_form/revenue_cost/total",
                leve: "screen",
                component: () =>
                    import('@/page/screen/business'),
                meta: {
                    title: '经营分析大屏',
                    icon: 'iconfont el-icon-data-line',
                    tracker: 'P47'
                }
            }
        ]
    },
    {
        path: '/userManager',
        name: 'userManage',
        leve: 1,
        component: Layout,
        meta: {
            title: '平台账号管理',
            icon: 'iconfont icon-zhanghaoguanli',
        },
        belongs: TOP.OPERATE_M,
        noDropdown: true,
        children: [{
            path: 'userList',
            name: "userList",
            limits: "/api/saas_company/list",
            leve: "userManage",
            meta: {
                title: '平台账号管理',
                icon: 'iconfont icon-zhanghaoguanli',
                routerType: 'leftmenu',
                tracker: 'P1',
                childrenurl: "/userManager/userList"
            },

            component: () =>
                import('@/page/userList/userList'),
        }]
    },
    {
        path: '/digitalsuper',
        component: Layout,
        name: 'digitalsuper',
        leve: 1,
        belongs: TOP.OPERATE_M,
        meta: {
            title: '数字智能',
            icon: 'iconfont icon-jiankong'
        },
        children: [
            {
                path: 'coldchainrobot',
                name: 'coldchainrobot',
                limits: "/api/intelligent/in_road_waybill",
                leve: "digitalsuper",
                component: () =>
                    import('@/page/digitalsuper/coldchainrobot'),
                meta: {
                    title: '冷链盯控AI BOT',
                    icon: 'iconfont icon-a-jiqirenzhineng-01',
                    tracker: 'P47'
                }
            }
        ]
    },
    {
        path: '/orderform',
        component: Layout,
        name: 'orderform',
        meta: {
            title: '订单管理',
            icon: 'iconfont icon-dingdanguanli'
        },
        belongs: TOP.ORDER_M,
        children: [{
            path: 'allOrder',
            name: 'allOrder',
            limits: "/api/order/list",
            leve: "orderform",
            component: () =>
                import('@/page/orderform/allOrder'),
            meta: {
                title: '全部订单',
                icon: 'iconfont icon-quanbudingdan01',
                tracker: 'P2'
            }
        },
        ]
    },
    {
        path: '/waybill',
        component: Layout,
        name: 'waybill',
        meta: {
            title: '运单管理',
            icon: 'iconfont icon-yundanguanli'
        },
        belongs: TOP.TRANSPORT_M,
        children: [
            {
                path: 'waybillPage',
                name: 'waybillPage',
                limits: "/api/waybill/list",
                leve: "waybill",
                component: () =>
                    import('@/page/waybill/waybillPage'),
                meta: {
                    title: '全部运单',
                    icon: 'iconfont icon-quanbudingdan01',
                    tracker: 'P3'
                }
            },

            {
                path: 'addReceipt',
                name: 'addReceipt',
                component: () =>
                    import('@/page/waybill/components/addReceipt'),
                meta: {
                    title: '',
                }
            },
            {
                path: 'distribution',
                name: 'distribution',
                component: () =>
                    import('@/page/waybill/components/distribution'),
                meta: {
                    title: '',
                }
            },
            {
                path: 'deliveryListpage',
                name: 'deliveryListpage',
                limits: "/api/waybill/collect/stay/list",
                leve: "waybill",
                component: () =>
                    import('@/page/waybill/deliveryListpage'),
                meta: {
                    title: '揽收管理',
                    icon: 'iconfont icon-tihuoguanli',
                    tracker: 'P5'
                },
                children: [{
                    path: 'type=0',
                    name: 'deliveryListpage',
                    limits: "/api/waybill/collect/stay/list",
                    leve: "deliveryListpage",
                    component: () =>
                        import('@/page/waybill/deliveryListpage'),
                    meta: {
                        title: '待揽收',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=1',
                    name: 'deliveryListpage',
                    limits: "/api/waybill/collect/stay/list",
                    leve: "deliveryListpage",
                    component: () =>
                        import('@/page/waybill/deliveryListpage'),
                    meta: {
                        title: '揽收中',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=2',
                    name: 'deliveryListpage',
                    limits: "/api/waybill/collect/stay/list",
                    leve: "deliveryListpage",
                    component: () =>
                        import('@/page/waybill/deliveryListpage'),
                    meta: {
                        title: '揽收完成',
                        tracker: 'P7'
                    }
                },]
            },
            {
                path: 'trunklinelistpage',
                name: 'trunklinelistpage',
                limits: "/api/dispatch/stay/list",
                leve: "waybill",
                component: () =>
                    import('@/page/waybill/trunklinelistpage'),
                meta: {
                    title: '干线/支线管理',
                    icon: 'iconfont icon-fenzhi',
                    tracker: 'P7'
                },
                children: [{
                    path: 'type=0',
                    name: 'trunklinelistpage',
                    limits: "/api/dispatch/stay/list",
                    leve: "waybill",
                    component: () =>
                        import('@/page/waybill/trunklinelistpage'),
                    meta: {
                        title: '待创建干线',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=1',
                    name: 'trunklinelistpage',
                    limits: "/api/dispatch/stay/list",
                    leve: "waybill",
                    component: () =>
                        import('@/page/waybill/trunklinelistpage'),
                    meta: {
                        title: '待发车',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=2',
                    name: 'trunklinelistpage',
                    limits: "/api/dispatch/stay/list",
                    leve: "waybill",
                    component: () =>
                        import('@/page/waybill/trunklinelistpage'),
                    meta: {
                        title: '已发车',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=3',
                    name: 'trunklinelistpage',
                    limits: "/api/dispatch/stay/list",
                    leve: "waybill",
                    component: () =>
                        import('@/page/waybill/trunklinelistpage'),
                    meta: {
                        title: '已到达',
                        tracker: 'P7'
                    }
                },]
            },
            {
                path: 'distributionlistpage',
                name: 'distributionlistpage',
                limits: "/api/waybill/distribution/stay/list",
                leve: "waybill",
                component: () =>
                    import('@/page/waybill/distributionlistpage'),
                meta: {
                    title: '配送管理',
                    icon: 'iconfont icon-peisong',
                    tracker: 'P9'
                },
                children: [{
                    path: 'type=0',
                    name: 'distributionlistpage',
                    limits: "/api/waybill/distribution/stay/list",
                    leve: "waybill",
                    component: () =>
                        import('@/page/waybill/distributionlistpage'),
                    meta: {
                        title: '待配送',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=1',
                    name: 'distributionlistpage',
                    limits: "/api/waybill/distribution/stay/list",
                    leve: "waybill",
                    component: () =>
                        import('@/page/waybill/distributionlistpage'),
                    meta: {
                        title: '配送中',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=2',
                    name: 'distributionlistpage',
                    limits: "/api/waybill/distribution/stay/list",
                    leve: "waybill",
                    component: () =>
                        import('@/page/waybill/distributionlistpage'),
                    meta: {
                        title: '配送完成',
                        tracker: 'P7'
                    }
                },]
            },
            {
                path: 'signforlistpage',
                name: 'signforlistpage',
                limits: "/api/waybill/sign/delivery/stay/list",
                leve: "waybill",
                component: () =>
                    import('@/page/waybill/signforlistpage'),
                meta: {
                    title: '签收管理',
                    icon: 'iconfont icon-qianshoushenpitongguo',
                    tracker: 'P10'
                },
                children: [{
                    path: 'type=1',
                    name: 'signforlistpage',
                    limits: "/api/waybill/sign/delivery/stay/list",
                    leve: "waybill",
                    component: () =>
                        import('@/page/waybill/signforlistpage'),
                    meta: {
                        title: '待签收',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=0',
                    name: 'signforlistpage',
                    limits: "/api/waybill/sign/delivery/stay/list",
                    leve: "waybill",
                    component: () =>
                        import('@/page/waybill/signforlistpage'),
                    meta: {
                        title: '待自提',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=2',
                    name: 'signforlistpage',
                    limits: "/api/waybill/sign/delivery/stay/list",
                    leve: "waybill",
                    component: () =>
                        import('@/page/waybill/signforlistpage'),
                    meta: {
                        title: '已签收',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=3',
                    name: 'signforlistpage',
                    limits: "/api/waybill/sign/delivery/stay/list",
                    leve: "waybill",
                    component: () =>
                        import('@/page/waybill/signforlistpage'),
                    meta: {
                        title: '已拒收',
                        tracker: 'P7'
                    }
                },]
            },
            {
                path: 'receiptlistpage',
                name: 'receiptlistpage',
                limits: "/api/waybill_receipt/stay/list",
                leve: "waybill",
                component: () =>
                    import('@/page/waybill/receiptlistpage'),
                meta: {
                    title: '回单管理',
                    icon: 'iconfont icon-huidanqueren',
                    tracker: 'P11'
                },
                children: [{
                    path: 'type=3',
                    name: 'receiptlistpage',
                    limits: "/api/waybill_receipt/stay/list",
                    leve: "waybill",
                    component: () =>
                        import('@/page/waybill/receiptlistpage'),
                    meta: {
                        title: '待回单',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=0',
                    name: 'receiptlistpage',
                    limits: "/api/waybill_receipt/stay/list",
                    leve: "waybill",
                    component: () =>
                        import('@/page/waybill/receiptlistpage'),
                    meta: {
                        title: '已回单',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=1',
                    name: 'receiptlistpage',
                    limits: "/api/waybill_receipt/stay/list",
                    leve: "waybill",
                    component: () =>
                        import('@/page/waybill/receiptlistpage'),
                    meta: {
                        title: '待签收',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=2',
                    name: 'receiptlistpage',
                    limits: "/api/waybill_receipt/stay/list",
                    leve: "waybill",
                    component: () =>
                        import('@/page/waybill/receiptlistpage'),
                    meta: {
                        title: '已签收',
                        tracker: 'P7'
                    }
                },]
            },
            {
                path: 'recyclelistpage',
                name: 'recyclelistpage',
                limits: "/api/waybill_box_recyle/stay/list",
                leve: "waybill",
                component: () =>
                    import('@/page/waybill/recyclelistpage'),
                meta: {
                    title: '回箱管理',
                    icon: 'iconfont icon-xiangzi',
                    tracker: 'P12'
                },
                children: [{
                    path: 'type=3',
                    name: 'recyclelistpage',
                    limits: "/api/waybill_box_recyle/stay/list",
                    leve: "waybill",
                    component: () =>
                        import('@/page/waybill/recyclelistpage'),
                    meta: {
                        title: '待回箱',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=5',
                    name: 'recyclelistpage',
                    limits: "/api/waybill_box_recyle/stay/list",
                    leve: "waybill",
                    component: () =>
                        import('@/page/waybill/recyclelistpage'),
                    meta: {
                        title: '已回箱',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=0',
                    name: 'recyclelistpage',
                    limits: "/api/waybill_box_recyle/stay/list",
                    leve: "waybill",
                    component: () =>
                        import('@/page/waybill/recyclelistpage'),
                    meta: {
                        title: '待干线签收',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=1',
                    name: 'recyclelistpage',
                    limits: "/api/waybill_box_recyle/stay/list",
                    leve: "waybill",
                    component: () =>
                        import('@/page/waybill/recyclelistpage'),
                    meta: {
                        title: '待末端签收',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=4',
                    name: 'recyclelistpage',
                    limits: "/api/waybill_box_recyle/stay/list",
                    leve: "waybill",
                    component: () =>
                        import('@/page/waybill/recyclelistpage'),
                    meta: {
                        title: '待厂商签收',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=2',
                    name: 'recyclelistpage',
                    limits: "/api/waybill_box_recyle/stay/list",
                    leve: "waybill",
                    component: () =>
                        import('@/page/waybill/recyclelistpage'),
                    meta: {
                        title: '已签收',
                        tracker: 'P7'
                    }
                },]
            },
        ]

    },
    {
        path: '/finance',
        component: Layout,
        name: 'finance',
        meta: {
            title: '财务管理',
            icon: 'iconfont icon-caiwu'
        },
        belongs: TOP.FINANCE_M,
        children: [
            {
                path: 'customerlist',
                name: 'customerlist',
                limits: "/api/finance/customer/sender/list",
                leve: "finance",
                component: () => import('@/page/finance/customerlist/customerlist'),
                meta: {
                    title: '对账管理',
                    icon: 'iconfont icon-duizhangzhongxin',
                    tracker: 'P48'
                },
                children: [{
                    path: 'type=0',
                    name: 'customerlist',
                    limits: "/api/finance/customer/sender/list",
                    leve: "finance",
                    component: () => import('@/page/finance/customerlist/customerlist'),
                    meta: {
                        title: '客户对账',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=1',
                    name: 'customerlist',
                    limits: "/api/finance/customer/sender/list",
                    leve: "finance",
                    component: () => import('@/page/finance/customerlist/customerlist'),
                    meta: {
                        title: '承运商对账',
                        tracker: 'P7'
                    }
                }]
            },
            {
                path: 'shippingcustomer',
                name: 'shippingcustomer',
                limits: "/api/finance/customer/list",
                leve: "finance",
                component: () =>
                    import('@/page/finance/shippingcustomer/shippingcustomer'),
                meta: {
                    title: '客户对账单',
                    icon: 'iconfont icon-kehu1',
                    tracker: 'P49'
                },
                children: [{
                    path: 'type=0',
                    name: 'shippingcustomer',
                    limits: "/api/finance/customer/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/shippingcustomer/shippingcustomer'),
                    meta: {
                        title: '对账列表',
                        tracker: 'P7'
                    }
                },
                    // {
                    //     path: 'type=1',
                    //     name: 'shippingcustomer',
                    //     limits: "/api/finance/customer/list",
                    //     leve: "finance",
                    //     component: () =>
                    //         import('@/page/finance/shippingcustomer/shippingcustomer'),
                    //     meta: {
                    //         title: '已取消',
                    //         tracker: 'P7'
                    //     }
                    // }
                ]
            },
            {
                path: 'carrierreconciliation',
                name: 'carrierreconciliation',
                limits: "/api/finance/carrier/list",
                leve: "finance",
                component: () =>
                    import('@/page/finance/carrierreconciliation/carrierreconciliation'),
                meta: {
                    title: '承运商对账单',
                    icon: 'iconfont icon-chengyunshangyundanchaxun',
                    tracker: 'P50'
                },
                children: [{
                    path: 'type=0',
                    name: 'carrierreconciliation',
                    limits: "/api/finance/carrier/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/carrierreconciliation/carrierreconciliation'),
                    meta: {
                        title: '对账列表',
                        tracker: 'P7'
                    }
                },
                    // {
                    //     path: 'type=1',
                    //     name: 'carrierreconciliation',
                    //     limits: "/api/finance/carrier/list",
                    //     leve: "finance",
                    //     component: () =>
                    //         import('@/page/finance/carrierreconciliation/carrierreconciliation'),
                    //     meta: {
                    //         title: '已取消',
                    //         tracker: 'P7'
                    //     }
                    // }
                ]
            },
            {
                path: 'receivableManage',
                name: 'receivableManage',
                limits: "/api/finance/receivable/list",
                leve: "finance",
                component: () =>
                    import('@/page/finance/receivableManage/receivableManage'),
                meta: {
                    title: '应收管理',
                    icon: 'iconfont icon-yingshou',
                    tracker: 'P52'
                },
                children: [{
                    path: 'type=0',
                    name: 'receivableManage',
                    limits: "/api/finance/receivable/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/receivableManage/receivableManage'),
                    meta: {
                        title: '待回款',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=1',
                    name: 'receivableManage',
                    limits: "/api/finance/receivable/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/receivableManage/receivableManage'),
                    meta: {
                        title: '已核销',
                        tracker: 'P7'
                    }
                }]
            },
            {
                path: 'paymentManage',
                name: 'paymentManage',
                limits: "/api/finance/payment/list",
                leve: "finance",
                component: () =>
                    import('@/page/finance/paymentManage/paymentManage'),
                meta: {
                    title: '应付管理',
                    icon: 'iconfont icon-yingfu1',
                    tracker: 'P53'
                },
                children: [{
                    path: 'type=0',
                    name: 'paymentManage',
                    limits: "/api/finance/payment/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/paymentManage/paymentManage'),
                    meta: {
                        title: '待付款',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=1',
                    name: 'paymentManage',
                    limits: "/api/finance/payment/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/paymentManage/paymentManage'),
                    meta: {
                        title: '已核销',
                        tracker: 'P7'
                    }
                }]
            },
            {
                path: 'receiptManage',
                name: 'receiptManage',
                limits: "/api/finance/invoice_apply/list",
                leve: "finance",
                component: () =>
                    import('@/page/finance/receiptManage/receiptManage'),
                meta: {
                    title: '发票申请',
                    icon: 'iconfont icon-fapiao',
                    tracker: 'P51'
                },
                children: [{
                    path: 'type=0',
                    name: 'receiptManage',
                    limits: "/api/finance/invoice_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/receiptManage/receiptManage'),
                    meta: {
                        title: '待申请',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=1',
                    name: 'receiptManage',
                    limits: "/api/finance/invoice_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/receiptManage/receiptManage'),
                    meta: {
                        title: '已申请',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=2',
                    name: 'receiptManage',
                    limits: "/api/finance/invoice_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/receiptManage/receiptManage'),
                    meta: {
                        title: '待开票',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=3',
                    name: 'receiptManage',
                    limits: "/api/finance/invoice_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/receiptManage/receiptManage'),
                    meta: {
                        title: '已开票',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=4',
                    name: 'receiptManage',
                    limits: "/api/finance/invoice_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/receiptManage/receiptManage'),
                    meta: {
                        title: '已作废',
                        tracker: 'P7'
                    }
                }]
            },
            {
                path: "thecarrierPays",
                name: "thecarrierPays",
                limits: "/api/finance/payable_apply/list",
                leve: "finance",
                component: () =>
                    import('@/page/finance/thecarrierPays/thecarrierPays'),
                meta: {
                    title: '承运商付款申请',
                    icon: 'iconfont icon-chengyunshangyundanchaxun',
                    tracker: 'P54'
                },
                children: [{
                    path: 'type=0',
                    name: "thecarrierPays",
                    limits: "/api/finance/payable_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/thecarrierPays/thecarrierPays'),
                    meta: {
                        title: '待审批',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=1',
                    name: "thecarrierPays",
                    limits: "/api/finance/payable_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/thecarrierPays/thecarrierPays'),
                    meta: {
                        title: '审批中',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=2',
                    name: "thecarrierPays",
                    limits: "/api/finance/payable_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/thecarrierPays/thecarrierPays'),
                    meta: {
                        title: '审批通过',
                        tracker: 'P7'
                    }
                }]
            },
            {
                path: "paymentReq",
                name: "paymentReq",
                limits: "/api/finance/payment_apply/list",
                leve: "finance",
                component: () =>
                    import('@/page/finance/paymentReq/paymentReq'),
                meta: {
                    title: '其它付款申请',
                    icon: 'iconfont icon-history',
                    tracker: 'P54'
                },
                children: [{
                    path: 'Typedata=0',
                    name: "paymentReq",
                    limits: "/api/finance/payment_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/paymentReq/paymentReq'),
                    meta: {
                        title: '待审批',
                        tracker: 'P7'
                    }
                }, {
                    path: 'Typedata=1',
                    name: "paymentReq",
                    limits: "/api/finance/payment_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/paymentReq/paymentReq'),
                    meta: {
                        title: '审批中',
                        tracker: 'P7'
                    }
                }, {
                    path: 'Typedata=2',
                    name: "paymentReq",
                    limits: "/api/finance/payment_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/paymentReq/paymentReq'),
                    meta: {
                        title: '审批通过',
                        tracker: 'P7'
                    }
                }]
            },
            {
                path: "reimburSement",
                name: "reimburSement",
                limits: "/api/finance/reimburse_apply/list",
                leve: "finance",
                component: () =>
                    import('@/page/finance/reimburSement/reimburSement'),
                meta: {
                    title: '报销申请',
                    icon: 'iconfont icon-caps-unlock-filling',
                    tracker: 'P54'
                },
                children: [{
                    path: 'type=0',
                    name: "reimburSement",
                    limits: "/api/finance/reimburse_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/reimburSement/reimburSement'),
                    meta: {
                        title: '待审批',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=1',
                    name: "reimburSement",
                    limits: "/api/finance/reimburse_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/reimburSement/reimburSement'),
                    meta: {
                        title: '审批中',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=2',
                    name: "reimburSement",
                    limits: "/api/finance/reimburse_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/reimburSement/reimburSement'),
                    meta: {
                        title: '审批通过',
                        tracker: 'P7'
                    }
                }]
            },
            {
                path: "reserveMoney",
                name: "reserveMoney",
                limits: "/api/finance/petty_cash_apply/list",
                leve: "finance",
                component: () =>
                    import('@/page/finance/reserveMoney/reserveMoney'),
                meta: {
                    title: '备用金申请',
                    icon: 'iconfont icon-beiyongjin',
                    tracker: 'P54'
                },
                children: [{
                    path: 'Typedata=0',
                    name: "reserveMoney",
                    limits: "/api/finance/petty_cash_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/reserveMoney/reserveMoney'),
                    meta: {
                        title: '待审批',
                        tracker: 'P7'
                    }
                }, {
                    path: 'Typedata=1',
                    name: "reserveMoney",
                    limits: "/api/finance/petty_cash_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/reserveMoney/reserveMoney'),
                    meta: {
                        title: '审批中',
                        tracker: 'P7'
                    }
                }, {
                    path: 'Typedata=2',
                    name: "reserveMoney",
                    limits: "/api/finance/petty_cash_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/reserveMoney/reserveMoney'),
                    meta: {
                        title: '审批通过',
                        tracker: 'P7'
                    }
                }]
            },
            {
                path: "paymentStatementList",
                name: "paymentStatementList",
                limits: "/api/wechatpay/log/list",
                leve: "finance",
                component: () =>
                    import('@/page/finance/paymentStatementList/paymentStatementList'),
                meta: {
                    title: '支付流水管理',
                    icon: 'iconfont icon-zhifu',
                    tracker: 'P15'
                }
            },
            {
                path: "refundReviewList",
                name: "refundReviewList",
                limits: "/api/wechatpay/order/refund/list",
                leve: "finance",
                component: () =>
                    import('@/page/finance/refundReview/refundReviewList'),
                meta: {
                    title: '退款申请管理',
                    icon: 'iconfont icon-tuikuanshenqing',
                    tracker: 'P15'
                }
            },
            {
                path: "useStamps",
                name: "useStamps",
                limits: "/api/finance/contract_stamp_apply/list",
                leve: "finance",
                component: () =>
                    import('@/page/finance/useStamps/useStamps'),
                meta: {
                    title: '合同用章申请',
                    icon: 'iconfont icon-beiyongjin',
                    tracker: 'P54'
                },
                children: [{
                    path: 'Typedata=0',
                    name: "useStamps",
                    limits: "/api/finance/contract_stamp_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/useStamps/useStamps'),
                    meta: {
                        title: '待审批',
                        tracker: 'P7'
                    }
                }, {
                    path: 'Typedata=1',
                    name: "useStamps",
                    limits: "/api/finance/contract_stamp_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/useStamps/useStamps'),
                    meta: {
                        title: '审批中',
                        tracker: 'P7'
                    }
                }, {
                    path: 'Typedata=2',
                    name: "useStamps",
                    limits: "/api/finance/contract_stamp_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/useStamps/useStamps'),
                    meta: {
                        title: '审批通过',
                        tracker: 'P7'
                    }
                }]
            },
            {
                path: "purChase",
                name: "purChase",
                limits: "/api/finance/purchase_apply/list",
                leve: "finance",
                component: () =>
                    import('@/page/finance/purChase/purChases'),
                meta: {
                    title: '采购申请',
                    icon: 'iconfont icon-beiyongjin',
                    tracker: 'P54'
                },
                children: [{
                    path: 'Typedata=0',
                    name: "purChase",
                    limits: "/api/finance/purchase_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/purChase/purChases'),
                    meta: {
                        title: '待审批',
                        tracker: 'P7'
                    }
                }, {
                    path: 'Typedata=1',
                    name: "purChase",
                    limits: "/api/finance/purchase_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/purChase/purChases'),
                    meta: {
                        title: '审批中',
                        tracker: 'P7'
                    }
                }, {
                    path: 'Typedata=2',
                    name: "purChase",
                    limits: "/api/finance/purchase_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/purChase/purChases'),
                    meta: {
                        title: '审批通过',
                        tracker: 'P7'
                    }
                }]
            },
            {
                path: "ztoRechargeApply",
                name: "ztoRechargeApply",
                limits: "/api/finance/zto_recharge_apply/list",
                leve: "finance",
                component: () =>
                    import('@/page/finance/ztoRechargeApply/ztoRechargeApply'),
                meta: {
                    title: '中通充值申请',
                    icon: 'iconfont icon-beiyongjin',
                    tracker: 'P54'
                },
                children: [{
                    path: 'Typedata=0',
                    name: "purChase",
                    limits: "/api/finance/zto_recharge_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/ztoRechargeApply/ztoRechargeApply'),
                    meta: {
                        title: '待审批',
                        tracker: 'P7'
                    }
                }, {
                    path: 'Typedata=1',
                    name: "purChase",
                    limits: "/api/finance/zto_recharge_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/ztoRechargeApply/ztoRechargeApply'),
                    meta: {
                        title: '审批中',
                        tracker: 'P7'
                    }
                }, {
                    path: 'Typedata=2',
                    name: "purChase",
                    limits: "/api/finance/zto_recharge_apply/list",
                    leve: "finance",
                    component: () =>
                        import('@/page/finance/ztoRechargeApply/ztoRechargeApply'),
                    meta: {
                        title: '审批通过',
                        tracker: 'P7'
                    }
                }]
            },
        ]

    },
    {
        path: '/reportform',
        component: Layout,
        name: 'reportform',
        meta: {
            title: '报表管理',
            icon: 'iconfont icon-wxbbaobiao'
        },
        belongs: TOP.OPERATE_M,
        children: [{
            path: 'bordereaux',
            name: 'bordereaux',

            meta: {
                title: '业务报表',
                icon: 'iconfont icon-yewu',
                routerType: 'leftmenu',
                titleList: [{
                    "path": "surfacebusiness",
                    "title": "网点业务汇总表"
                },

                {
                    "path": "vehiclebusinesssummary",
                    "title": "车辆业务汇总表"
                },

                ]
            },
            component: Content,
            children: [{
                path: 'surfacebusiness',
                name: 'surfacebusiness',
                meta: {
                    title: '网点业务汇总表',
                    routerType: 'leftmenu',
                    tracker: 'P19'
                },
                component: () => import('@/page/reportform/surfacebusiness/surfacebusiness')
            },


            {
                path: 'vehiclebusinesssummary',
                name: 'vehiclebusinesssummary',
                component: () =>
                    import('@/page/reportform/vehiclebusinesssummary/vehiclebusinesssummary'),
                meta: {
                    title: '车辆业务汇总表',
                    icon: 'fa-asterisk',
                    routerType: 'topmenu',
                    tracker: 'P20'
                }
            },

            ]
        },
        {
            path: 'earningreport',
            name: 'earningreport',
            meta: {
                title: '业绩报表',
                icon: 'iconfont icon-yeji',
                routerType: 'leftmenu',
                titleList: [{
                    "path": "employeeperformancesummary",
                    "title": "员工业绩汇总表"
                },
                ]
            },
            component: Content,
            children: [{
                path: 'employeeperformancesummary',
                name: 'employeeperformancesummary',
                meta: {
                    title: '员工业绩汇总表',
                    icon: 'fa-asterisk',
                    routerType: 'topmenu',
                    tracker: 'P21'
                },
                component: () => import('@/page/reportform/employeeperformancesummary/employeeperformancesummary'),
            },

            ]
        },
        {
            path: 'Largewidthmeterlist',
            name: 'Largewidthmeterlist',
            limits: "/api/waybillFullLink/list",
            leve: "reportform",
            component: () =>
                import('@/page/reportform/Largewidthmeter/Largewidthmeterlist'),
            meta: {
                title: '商服大宽表',
                icon: 'iconfont el-icon-tickets'
            }
        },
        {
            path: "incomesummary",
            name: "incomesummary",
            limits: "/api/report_form/revenue_cost/summary",
            leve: "reportform",
            component: () =>
                import('@/page/reportform/incomesummary/incomesummary'),
            meta: {
                title: '收入成本汇总',
                icon: 'iconfont icon-shouru'
            }
        },
        {
            path: "salesStatement",
            name: "salesStatement",
            limits: "areasalesStatement",
            leve: "reportform",
            component: () =>
                import('@/page/reportform/salesStatement/salesStatementindex'),
            meta: {
                title: '销售报表',
                icon: 'iconfont icon-xiaoshou-'
            }
        },
        {
            path: "operatereport",
            name: "operatereport",
            limits: "/api/report_form/revenue_cost/summary",
            leve: "reportform",
            component: () =>
                import('@/page/reportform/operatereport/operatereport'),
            meta: {
                title: '运营报表',
                icon: 'iconfont icon-yunying'
            }
        },
        {
            path: "divisionalstatement",
            name: "divisionalstatement",
            limits: "/api/finance/analysis/customer/income",
            leve: "reportform",
            component: () =>
                import('@/page/reportform/divisionalstatement/divisionalstatement'),
            meta: {
                title: '经分报表',
                icon: 'iconfont icon-wxbbaobiao'
            }
        },
        {
            path: "monthlypaysignboard",
            name: "monthlypaysignboard",
            limits: "/api/finance/regional_monthly_payment/detail",
            leve: "reportform",
            component: () =>
                import('@/page/reportform/monthlypaysignboard/monthlypaysignboard'),
            meta: {
                title: '月付费用报表',
                icon: 'iconfont icon-icon-test'
            }
        },

        ]
    },
    {
        path: '/material',
        component: Layout,
        name: 'material',
        meta: {
            title: '资料管理',
            icon: 'iconfont icon-ziliaoku'
        },
        belongs: TOP.TRANSPORT_M,
        children: [
            {
                path: 'customermanagement',
                name: 'customermanagement',
                limits: "/api/company/customer/list",
                leve: "material",
                component: () =>
                    import('@/page/material/customermanagement/customermanagementlist'),
                meta: {
                    title: '客户管理',
                    icon: 'iconfont el-icon-s-custom',
                    tracker: 'P25'
                }
            },
            {
                path: 'accountmanage',
                name: 'accountmanage',
                limits: "/api/company/customer/account/list",
                leve: "material",
                component: () =>
                    import('@/page/material/accountmanage/accountmanage'),
                meta: {
                    title: '账号管理',
                    icon: 'iconfont icon-zhanghaoguanli1',
                    tracker: 'P57'
                }
            },
            {
                path: 'shipper',
                name: 'shipper',
                limits: "/api/company/shipper/list",
                leve: "material",
                component: () =>
                    import('@/page/material/shipper/shipper'),
                meta: {
                    title: '发货人管理',
                    icon: 'iconfont icon-fahuoren',
                    tracker: 'P22'
                }
            },
            {
                path: 'consignee',
                name: 'consignee',
                limits: "/api/company/consignee/list",
                leve: "material",
                component: () =>
                    import('@/page/material/consignee/consignee'),
                meta: {
                    title: '收货人管理',
                    icon: 'iconfont icon-shouhuoren',
                    tracker: 'P23'
                }
            },
            {
                path: 'invoicebook',
                name: 'invoicebook',
                limits: "/api/finance/invoice_book/list",
                leve: "material",
                component: () =>
                    import('@/page/material/invoicebook/invoicebook'),
                meta: {
                    title: '财务账户管理',
                    icon: 'iconfont icon-fahuoren',
                    tracker: 'P58'
                },
                children: [{
                    path: 'activeName=0',
                    name: 'invoicebook',
                    limits: "/api/finance/invoice_book/list",
                    leve: "material",
                    component: () =>
                        import('@/page/material/invoicebook/invoicebook'),
                    meta: {
                        title: '渡石',
                        tracker: 'P7'
                    }
                }, {
                    path: 'activeName=1',
                    name: 'invoicebook',
                    limits: "/api/finance/invoice_book/list",
                    leve: "material",
                    component: () =>
                        import('@/page/material/invoicebook/invoicebook'),
                    meta: {
                        title: '客户',
                        tracker: 'P7'
                    }
                }, {
                    path: 'activeName=2',
                    name: 'invoicebook',
                    limits: "/api/finance/invoice_book/list",
                    leve: "material",
                    component: () =>
                        import('@/page/material/invoicebook/invoicebook'),
                    meta: {
                        title: '承运商',
                        tracker: 'P7'
                    }
                }]
            },
            {
                path: 'carrier',
                name: 'carrier',
                limits: "/api/company/carrier/list",
                leve: "material",
                component: () =>
                    import('@/page/material/carrier/carrier'),
                meta: {
                    title: '承运方管理',
                    icon: 'iconfont icon-rengonggaichengyunshang_o',
                    tracker: 'P24'
                }
            },

            {
                path: 'personnelmaintenance',
                name: 'personnelmaintenance',
                limits: "/api/company/driver/list",
                leve: "material",
                component: () =>
                    import('@/page/material/personnelmaintenance/personnelmaintenance'),
                meta: {
                    title: '司机管理',
                    icon: 'iconfont icon-siji',
                    tracker: 'P26'
                }
            },
            {
                path: 'maintenancevehicle',
                name: 'maintenancevehicle',
                limits: "/api/company/vehicle/list",
                leve: "material",
                component: () =>
                    import('@/page/material/maintenancevehicle/maintenancevehicle'),
                meta: {
                    title: '车辆管理',
                    icon: 'iconfont icon-truck',
                    tracker: 'P27'
                }
            },
            {
                path: 'addressmaintenance',
                name: 'addressmaintenance',
                limits: "/api/company/incubator/list",
                leve: "material",
                component: () =>
                    import('@/page/material/addressmaintenance/addressmaintenance'),
                meta: {
                    title: '保温箱管理',
                    icon: 'iconfont icon-xiangzi',
                    tracker: 'P28'
                }
            },
            {
                path: 'manufacturerGPS',
                name: 'manufacturerGPS',
                limits: "/api/position/firm/auth/list",
                leve: "material",
                component: () =>
                    import('@/page/material/manufacturerGPS/manufacturerGPS'),
                meta: {
                    title: 'Gps厂商授权',
                    icon: 'iconfont icon-xiangzi',
                    tracker: 'P28'
                }
            },
            {
                path: 'thermometermanwarry',
                name: 'thermometermanwarry',
                limits: "/api/temperature/firm/auth/list",
                leve: "material",
                component: () =>
                    import('@/page/material/thermometermanwarry/thermometermanwarry'),
                meta: {
                    title: '温度计厂商授权',
                    icon: 'iconfont icon-xiangzi',
                    tracker: 'P28'
                }
            },
            {
                path: 'thermometermaintenance',
                name: 'thermometermaintenance',
                limits: "/api/company/thermometer/list",
                leve: "material",
                component: () =>
                    import('@/page/material/thermometermaintenance/thermometermaintenance'),
                meta: {
                    title: '温度计管理',
                    icon: 'iconfont icon-wenduji',
                    tracker: 'P29'
                }
            },
            {
                path: 'routemaintenance',
                name: 'routemaintenance',
                limits: "/api/company/router/list",
                leve: "material",
                component: () =>
                    import('@/page/material/routemaintenance/routemaintenance'),
                meta: {
                    title: '路由维护',
                    icon: 'iconfont icon-luyou',
                    tracker: 'P30'
                }
            },
            {
                path: 'warehousemaintenance',
                name: 'warehousemaintenance',
                limits: "/api/company/warehouse/list",
                leve: "material",
                component: () =>
                    import('@/page/material/warehousemaintenance/warehousemaintenance'),
                meta: {
                    title: '仓库维护',
                    icon: 'iconfont icon-cangku',
                    tracker: 'P31'
                }
            },
            {
                path: 'producttype',
                name: 'producttype',
                limits: "/api/transportType/list",
                leve: "material",
                component: () =>
                    import('@/page/material/producttype/producttype'),
                meta: {
                    title: '承运类型管理',
                    icon: 'iconfont icon-xiangmuleixing',
                    tracker: 'P32'
                }
            },
            {
                path: 'gpsequipment',
                name: 'gpsequipment',
                limits: "/api/company/gps/list",
                leve: "material",
                component: () =>
                    import('@/page/material/gpsequipment/gpsequipment'),
                meta: {
                    title: 'GPS设备管理',
                    icon: 'iconfont icon-gps',
                    tracker: 'P33'
                }
            },
            {
                path: 'packagingscheme',
                name: 'packagingscheme',
                limits: "/api/packaging/list",
                leve: "material",
                component: () =>
                    import('@/page/material/packagingscheme/packagingscheme'),
                meta: {
                    title: '包装方案',
                    icon: 'iconfont el-icon-c-scale-to-original',
                    tracker: 'P47'
                }
            },
        ]
    },
    {
        path: '/earlywaring',
        component: Layout,
        name: 'earlywaring',
        meta: {
            title: '预警管理',
            icon: 'iconfont icon-yujing'
        },
        belongs: TOP.TRANSPORT_M,
        children: [{
            path: 'warningcontent',
            name: 'warningcontent',
            limits: "/api/earlywarning/template/list",
            leve: "earlywaring",
            component: () =>
                import('@/page/earlywaring/warningcontent'),
            meta: {
                title: '预警内容管理',
                icon: 'iconfont icon-yujing1',
                tracker: 'P34'
            }
        },
        {
            path: 'warningrules',
            name: 'warningrules',
            limits: "/api/earlywarning/rule/list",
            leve: "earlywaring",
            component: () =>
                import('@/page/earlywaring/warningrules'),
            meta: {
                title: '预警规则管理',
                icon: 'iconfont icon-guize',
                tracker: 'P35'
            },
            children: [{
                path: 'type=0',
                name: 'warningrules',
                limits: "/api/earlywarning/rule/list",
                leve: "earlywaring",
                component: () =>
                    import('@/page/earlywaring/warningrules'),
                meta: {
                    title: '超时预警',
                    tracker: 'P7'
                }
            }, {
                path: 'type=1',
                name: 'warningrules',
                limits: "/api/earlywarning/rule/list",
                leve: "earlywaring",
                component: () =>
                    import('@/page/earlywaring/warningrules'),
                meta: {
                    title: '超温预警',
                    tracker: 'P7'
                }
            }, {
                path: 'type=2',
                name: 'warningrules',
                limits: "/api/earlywarning/rule/list",
                leve: "earlywaring",
                component: () =>
                    import('@/page/earlywaring/warningrules'),
                meta: {
                    title: '离线预警',
                    tracker: 'P7'
                }
            }]
        },
        {
            path: 'warningrecord',
            name: 'warningrecord',
            limits: "/api/earlywarning/record/list",
            leve: "earlywaring",
            component: () =>
                import('@/page/earlywaring/warningrecord'),
            meta: {
                title: '预警记录管理',
                icon: 'iconfont icon-jilu',
                tracker: 'P36'
            }
        },
        ]
    },
    // 公司管理
    {
        path: '/companymanagement',
        component: Layout,
        name: 'companymanagement',
        meta: {
            title: '公司管理',
            icon: 'iconfont icon-gongsiguanli'
        },
        belongs: TOP.OPERATE_M,
        children: [{
            path: 'organizationchart',
            name: 'organizationchart',
            limits: "/api/company/organizational/branch/list",
            leve: "companymanagement",
            component: () =>
                import('@/page/companymanagement/organizationchart'),
            meta: {
                title: '组织架构',
                icon: 'iconfont icon-zuzhijiagoujiekou',
                tracker: 'P37'
            }
        },
        {
            path: 'rolemanagement',
            name: 'rolemanagement',
            limits: "/api/company/role/list",
            leve: "companymanagement",
            component: () =>
                import('@/page/companymanagement/rolemanagement'),
            meta: {
                title: '角色管理',
                icon: 'iconfont icon-jiaose',
                tracker: 'P38'
            }
        },
        {
            path: 'Dataview',
            name: 'Dataview',
            limits: "/api/dataView/module_branch_relation/list",
            leve: "companymanagement",
            component: () =>
                import('@/page/companymanagement/Dataview'),
            meta: {
                title: '数据视野',
                icon: 'iconfont el-icon-s-data',
                tracker: 'P39'
            }
        },
        {
            path: 'AuditingprocessList',
            name: 'AuditingprocessList',
            limits: "/api/examine/list",
            leve: "companymanagement",
            component: () =>
                import('@/page/companymanagement/AuditingprocessList'),
            meta: {
                title: '审核流程管理',
                icon: 'iconfont icon-liucheng',
                tracker: 'P40'
            }
        },
        {
            path: 'auditrecordsList',
            name: 'auditrecordsList',
            limits: "/api/examine/record/already/list",
            leve: "companymanagement",
            component: () =>
                import('@/page/companymanagement/auditrecordsList'),
            meta: {
                title: '审核记录管理',
                icon: 'iconfont icon-shouye',
                tracker: 'P41'
            },
            children: [{
                path: 'type=0',
                name: 'auditrecordsList',
                limits: "/api/examine/record/already/list",
                leve: "companymanagement",
                component: () =>
                    import('@/page/companymanagement/auditrecordsList'),
                meta: {
                    title: '待处理',
                    tracker: 'P7'
                }
            }, {
                path: 'type=1',
                name: 'auditrecordsList',
                limits: "/api/examine/record/already/list",
                leve: "companymanagement",
                component: () =>
                    import('@/page/companymanagement/auditrecordsList'),
                meta: {
                    title: '已处理',
                    tracker: 'P7'
                }
            }, {
                path: 'type=2',
                name: 'auditrecordsList',
                limits: "/api/examine/record/already/list",
                leve: "companymanagement",
                component: () =>
                    import('@/page/companymanagement/auditrecordsList'),
                meta: {
                    title: '抄送我',
                    tracker: 'P7'
                }
            }, {
                path: 'type=3',
                name: 'auditrecordsList',
                limits: "/api/examine/record/already/list",
                leve: "companymanagement",
                component: () =>
                    import('@/page/companymanagement/auditrecordsList'),
                meta: {
                    title: '由我发起',
                    tracker: 'P7'
                }
            }]
        },
        {
            path: 'signaturemanagementList',
            name: 'signaturemanagementList',
            limits: "/api/reportdata/signature/list",
            leve: "companymanagement",
            component: () =>
                import('@/page/companymanagement/signaturemanagementList'),
            meta: {
                title: '签章管理',
                icon: 'iconfont icon-qianzhang',
                tracker: 'P42'
            }
        },
        {
            path: 'reportmanagementList',
            name: 'reportmanagementList',

            component: () =>
                import('@/page/companymanagement/reportmanagementList'),
            meta: {
                title: '报告管理',
                icon: 'iconfont icon-baogao',
                tracker: 'P43'
            }
        },
        {
            path: 'chargingrulesList',
            name: 'chargingrulesList',
            limits: "/api/billing_rule/list",
            leve: "companymanagement",
            component: () =>
                import('@/page/companymanagement/chargingrulesList'),
            meta: {
                title: '计费规则',
                icon: 'iconfont icon-changyongtubiao_jifei',
                tracker: 'P44'
            }
        },

        {
            path: 'shippingcustomerfee',
            name: 'shippingcustomerfee',
            component: () =>
                import('@/page/companymanagement/shippingcustomerfee'),
            meta: {
                title: '计费规则--旧版',
                icon: 'iconfont icon-changyongtubiao_jifei',
                tracker: 'P44'
            }
        },
        // 价格
        {
            path: 'pricepage',
            name: 'pricepage',
            component: () =>
                import('@/page/companymanagement/pricepage'),
            meta: {
                title: '',
            }
        },

        {
            path: 'datadictionary',
            name: 'datadictionary',
            limits: "/api/dictionary/list",
            leve: "companymanagement",
            component: () =>
                import('@/page/companymanagement/datadictionary'),
            meta: {
                title: '数据字典',
                icon: 'iconfont icon-zidian'
            }
        },
        {
            path: 'openplatform',
            name: 'openplatform',
            limits: "/api/authorizedApi/list",
            leve: "companymanagement",
            component: () =>
                import('@/page/companymanagement/openplatform'),
            meta: {
                title: '对外开放平台APi',
                icon: 'iconfont icon-kaifangsousuo',
                tracker: 'P45'
            }
        },
        {
            path: 'Printsettings',
            name: 'Printsettings',
            limits: "/api/document_template/auth/list",
            leve: "companymanagement",
            component: () =>
                import('@/page/companymanagement/Printsettings'),
            meta: {
                title: '打印设置',
                icon: 'iconfont el-icon-printer',
                tracker: 'P62'
            }
        },
        {
            path: 'SystemManagement',
            name: 'SystemManagement',
            limits: "/api/system/setting/list",
            leve: "companymanagement",
            component: () =>
                import('@/page/companymanagement/SystemManagement'),
            meta: {
                title: '系统管理',
                icon: 'iconfont icon-xitong',
                tracker: 'P61'
            }
        },
        {
            path: 'messageNotification',
            name: 'messageNotification',
            limits: "/api/message_rule/list",
            leve: "companymanagement",
            component: () =>
                import('@/page/companymanagement/messageNotification'),
            meta: {
                title: '消息规则配置',
                icon: 'iconfont icon-xiaoxiguize'
            }
        }
        ]
    },
    {
        path: '/message',
        component: Layout,
        name: 'message',
        meta: {
            title: '消息中心',
            icon: 'iconfont icon-31xiaoxi'
        },
        belongs: TOP.INDEX,
        children: [
            {
                path: 'abnormal',
                name: 'abnormal',
                limits: "login_log",
                leve: "message",
                component: () =>
                    import('@/page/message/abnormal'),
                meta: {
                    title: '异常',
                    icon: 'iconfont icon-yichang',
                    tracker: 'P46'
                }
            },
            {
                path: 'poplog',
                name: 'poplog',
                limits: "login_log",
                leve: "message",
                component: () =>
                    import('@/page/message/poplog'),
                meta: {
                    title: '日志管理',
                    icon: 'iconfont el-icon-date',
                    tracker: 'P63'
                }
            },
            {
                path: 'operationlog',
                name: 'operationlog',
                limits: "login_log",
                leve: "message",
                component: () =>
                    import('@/page/message/operationlog/operationlog.vue'),
                meta: {
                    title: '操作日志管理',
                    icon: 'iconfont icon-wodexiaoxi',
                    tracker: 'P48'
                }
            },
            {
                path: 'feedback',
                name: 'feedback',
                limits: "/api/feedback/list",
                leve: "message",
                component: () =>
                    import('@/page/message/feedback/feedback.vue'),
                meta: {
                    title: '意见反馈',
                    icon: 'iconfont icon-yijianfankui',
                    tracker: 'P64'
                },
                children: [{
                    path: 'type=0',
                    name: 'feedback',
                    limits: "/api/feedback/list",
                    leve: "message",
                    component: () =>
                        import('@/page/message/feedback/feedback.vue'),
                    meta: {
                        title: '意见反馈',
                        icon: 'iconfont el-icon-date',
                        tracker: 'P64'
                    },
                }, {
                    path: 'type=1',
                    name: 'feedback',
                    limits: "/api/feedback/list",
                    leve: "message",
                    component: () =>
                        import('@/page/message/feedback/feedback.vue'),
                    meta: {
                        title: '服务评价',
                        icon: 'iconfont el-icon-date',
                        tracker: 'P64'
                    },
                }]
            }, {
                path: 'satisfactionReport',
                name: 'satisfactionReport',
                limits: "/api/feedback/report/list",
                leve: "message",
                component: () =>
                    import('@/page/message/satisfactionReport/index.vue'),
                meta: {
                    title: '客户满意度',
                    icon: 'iconfont icon-emoticonsiconsfull18',
                    tracker: 'P64'
                }
            },
            {
                path: 'myMessages',
                name: 'myMessages',
                limits: "/api/station_mail/list",
                leve: "message",
                component: () =>
                    import('@/page/message/myMessages/myMessages.vue'),
                meta: {
                    title: '我的消息',
                    icon: 'iconfont icon-wodexiaoxi1',
                    tracker: 'P48'
                }
            },
        ]
    },
    {
        path: '/toolmanagement',
        component: Layout,
        name: 'toolmanagement',
        meta: {
            title: '运力工具',
            icon: 'iconfont icon-weixiushenqing-banshou-01'
        },
        belongs: TOP.OPERATE_M,
        children: [
            {
                path: 'capacitymanagement',
                name: 'capacitymanagement',
                component: () =>
                    import('@/page/toolmanagement/capacitymanagement'),
                meta: {
                    title: '开通线路',
                    icon: 'iconfont icon-jilu'
                }
            },
            {
                path: 'linesopened',
                name: 'linesopened',
                component: () =>
                    import('@/page/toolmanagement/linesopened'),
                meta: {
                    title: '待开通线路',
                    icon: 'iconfont el-icon-question'
                }
            },
            {
                path: 'transportpool',
                name: 'transportpool',
                limits: "/api/transport_capacity/list",
                leve: "toolmanagement",
                component: () =>
                    import('@/page/toolmanagement/transportpool'),
                meta: {
                    title: '运力池',
                    icon: 'iconfont icon-huochedong'
                }
            },
            {
                path: 'transportpoolSignage',
                name: 'transportpoolSignage',
                limits: "/api/transport_capacity/signage_info/get",
                leve: "toolmanagement",
                component: () =>
                    import('@/page/toolmanagement/transportpoolSignage'),
                meta: {
                    title: '运力池看板',
                    icon: 'iconfont icon-yunyingguanlicheci'
                }
            },

        ]
    },
    {
        path: '/infoManage',
        component: Layout,
        name: 'infoManage',
        meta: {
            title: '个人中心',
            icon: 'iconfont el-icon-s-custom'
        },
        belongs: TOP.INDEX,
        children: [
            {
                path: 'userCenter',
                name: 'userCenter',
                limits: "userinfo",
                leve: "infoManage",
                component: () =>
                    import('@/page/infoManage/userCenter'),
                meta: {
                    title: '用户信息',
                    icon: 'iconfont icon-jilu',
                    tracker: 'P65'
                }
            },
        ]
    },
    {
        path: '/filemange',
        component: Layout,
        name: 'filemange',
        meta: {
            title: '质量文件管理',
            icon: 'iconfont el-icon-folder'
        },
        belongs: TOP.QUALITY_M,
        children: [
            {
                path: 'templateConfigList',
                name: 'templateConfigList',
                limits: "/api/qms/file/formwork/list",
                leve: "filemange",
                component: () =>
                    import('@/page/qms/filemanage/templateConfigList'),
                meta: {
                    title: '模板配置',
                    icon: 'iconfont el-icon-document'
                }
            },
            {
                path: 'fileRecordList',
                name: 'fileRecordList',
                limits: "/api/qms/file/list",
                leve: "filemange",
                component: () =>
                    import('@/page/qms/filemanage/fileRecordList'),
                meta: {
                    title: '质量文件管理',
                    icon: 'iconfont el-icon-paperclip'
                },
                children: [{
                    path: 'type=0',
                    name: 'fileRecordList',
                    limits: "/api/qms/file/list",
                    leve: "filemange",
                    component: () =>
                        import('@/page/qms/filemanage/fileRecordList'),
                    meta: {
                        title: '待生效',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=1',
                    name: 'fileRecordList',
                    limits: "/api/qms/file/list",
                    leve: "filemange",
                    component: () =>
                        import('@/page/qms/filemanage/fileRecordList'),
                    meta: {
                        title: '生效中',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=2',
                    name: 'fileRecordList',
                    limits: "/api/qms/file/list",
                    leve: "filemange",
                    component: () =>
                        import('@/page/qms/filemanage/fileRecordList'),
                    meta: {
                        title: '已作废',
                        tracker: 'P7'
                    }
                }]
            },
            {
                path: 'temperaturefilelist',
                name: 'temperaturefilelist',
                limits: "/api/qms/filing/waybill/place",
                leve: "filemange",
                component: () =>
                    import('@/page/qms/filemanage/temperaturefilelist'),
                meta: {
                    title: '温度报告归档',
                    icon: 'iconfont icon-noun__cc'
                }
            },
            {
                path: 'abnormalfilelist',
                name: 'abnormalfilelist',
                limits: "/api/qms/filing/abnormal/place",
                leve: "filemange",
                component: () =>
                    import('@/page/qms/filemanage/abnormalfilelist'),
                meta: {
                    title: '异常归档',
                    icon: 'iconfont icon-yichang1'
                }
            },
            {
                path: 'receiptfilelist',
                name: 'receiptfilelist',
                limits: "/api/qms/filing/receipt/place",
                leve: "filemange",
                component: () =>
                    import('@/page/qms/filemanage/receiptfilelist'),
                meta: {
                    title: '回单归档',
                    icon: 'iconfont icon-dianzihuidan'
                }
            },

        ]
    },
    {
        path: '/trainmanage',
        component: Layout,
        name: 'trainmanage',
        meta: {
            title: '培训管理',
            icon: 'iconfont el-icon-data-board'
        },
        belongs: TOP.QUALITY_M,
        children: [
            {
                path: 'trainMaterialList',
                name: 'trainMaterialList',
                limits: "/api/training/material/list",
                leve: "trainmanage",
                component: () =>
                    import('@/page/qms/trainmanage/trainMaterialList'),
                meta: {
                    title: '培训材料',
                    icon: 'iconfont el-icon-document'
                }
            },
            {
                path: 'trainManageList',
                name: 'trainManageList',
                limits: "/api/training/plan/list",
                leve: "trainmanage",
                component: () =>
                    import('@/page/qms/trainmanage/trainManageList'),
                meta: {
                    title: '培训计划',
                    icon: 'iconfont el-icon-files'
                }
            },
            {
                path: 'trainTaskList',
                name: 'trainTaskList',
                limits: "/api/training/mine/plan/list",
                leve: "trainmanage",
                component: () =>
                    import('@/page/qms/trainmanage/trainTaskList'),
                meta: {
                    title: '我的培训任务',
                    icon: 'iconfont el-icon-collection-tag'
                },
                children: [{
                    path: 'type=0',
                    name: 'trainTaskList',
                    limits: "/api/training/mine/plan/list",
                    leve: "trainmanage",
                    component: () =>
                        import('@/page/qms/trainmanage/trainTaskList'),
                    meta: {
                        title: '我是讲师',
                        icon: 'iconfont el-icon-collection-tag'
                    },
                }, {
                    path: 'type=1',
                    name: 'trainTaskList',
                    limits: "/api/training/mine/plan/list",
                    leve: "trainmanage",
                    component: () =>
                        import('@/page/qms/trainmanage/trainTaskList'),
                    meta: {
                        title: '我是被培训人',
                        icon: 'iconfont el-icon-collection-tag'
                    },
                }]
            },
            {
                path: 'certificateList',
                name: 'certificateList',
                limits: "/api/certificate/list",
                leve: "trainmanage",
                component: () =>
                    import('@/page/qms/trainmanage/certificate/certificateList'),
                meta: {
                    title: '证书管理',
                    icon: 'iconfont icon-jilu'
                }
            },
        ]
    },
    {
        path: '/examinemanage',
        component: Layout,
        name: 'examinemanage',
        meta: {
            title: '考核管理',
            icon: 'iconfont el-icon-s-platform'
        },
        belongs: TOP.QUALITY_M,
        children: [
            {
                path: 'questionList',
                name: 'questionList',
                limits: "/api/training/examination/question/list",
                leve: "examinemanage",
                component: () =>
                    import('@/page/qms/examinemanage/question/questionList'),
                meta: {
                    title: '考核题库',
                    icon: 'iconfont icon-kaohe'
                }
            },
            {
                path: 'paperList',
                name: 'paperList',
                limits: "/api/training/examination/paper/list",
                leve: "examinemanage",
                component: () =>
                    import('@/page/qms/examinemanage/paper/paperList'),
                meta: {
                    title: '试卷设计',
                    icon: 'iconfont icon-shijuan'
                }
            },
            {
                path: 'examRecordList',
                name: 'examRecordList',
                limits: "/api/training/examination/record/list",
                leve: "examinemanage",
                component: () =>
                    import('@/page/qms/examinemanage/examRecord/examRecordList'),
                meta: {
                    title: '考核记录',
                    icon: 'iconfont icon-kaohe'
                },
                children: [{
                    path: 'type=0',
                    name: 'examRecordList',
                    limits: "/api/training/examination/record/list",
                    leve: "examinemanage",
                    component: () =>
                        import('@/page/qms/examinemanage/examRecord/examRecordList'),
                    meta: {
                        title: '待考试',
                        tracker: 'P7'
                    }
                }, {
                    path: 'type=1',
                    name: 'examRecordList',
                    limits: "/api/training/examination/record/list",
                    leve: "examinemanage",
                    component: () =>
                        import('@/page/qms/examinemanage/examRecord/examRecordList'),
                    meta: {
                        title: '待阅卷',
                        tracker: 'P7'
                    }
                }]
            },


        ]
    },
    {
        path: '/capamanage',
        component: Layout,
        name: 'capamanage',
        meta: {
            title: '质量事件管理',
            icon: 'iconfont el-icon-warning-outline'
        },
        belongs: TOP.QUALITY_M,
        children: [
            {
                path: 'capaList',
                name: 'capaList',
                limits: "/api/training/examination/record/list",
                leve: "capamanage",
                component: () =>
                    import('@/page/qms/capamanage/capaList'),
                meta: {
                    title: 'capa管理',
                    icon: 'iconfont icon-caps-unlock-filling'
                }
            },
            {
                path: 'deviationList',
                name: 'deviationList',
                limits: "/api/qms/deviation/list",
                leve: "capamanage",
                component: () =>
                    import('@/page/qms/capamanage/deviationList'),
                meta: {
                    title: '偏差',
                    icon: 'iconfont icon-pianchaguanli'
                }
            },
            {
                path: 'changeList',
                name: 'changeList',
                limits: "/api/qms/change/list",
                leve: "capamanage",
                component: () =>
                    import('@/page/qms/capamanage/changeList'),
                meta: {
                    title: '变更',
                    icon: 'iconfont icon-shujubiangeng'
                }
            },
        ]
    },
    {
        path: '/auditmanage',
        name: 'auditmanage',
        leve: 1,
        component: Layout,
        meta: {
            title: '审计管理',
            icon: 'iconfont icon-shenji',
        },
        belongs: TOP.QUALITY_M,
        children: [{
            path: 'auditlist',
            name: "auditlist",
            limits: "/api/qms/audit/list",
            leve: "auditmanage",
            meta: {
                title: '审计管理',
                icon: 'iconfont icon-shenji',
                routerType: 'leftmenu',
                tracker: 'P1'
            },

            component: () =>
                import('@/page/qms/auditmanage/auditlist'),
        }]
    },
    {
        path: '/verifymanage',
        name: 'verifymanage',
        leve: 1,
        component: Layout,
        meta: {
            title: '验证管理',
            icon: 'iconfont icon-yanzhengyanzhengma',
        },
        belongs: TOP.QUALITY_M,
        children: [{
            path: 'verifylist',
            name: "verifylist",
            limits: "/api/verify/record/list",
            leve: "verifymanage",
            meta: {
                title: '验证管理',
                icon: 'iconfont icon-yanzhengyanzhengma',
                routerType: 'leftmenu',
                tracker: 'P1'
            },
            component: () =>
                import('@/page/qms/verifymanage/verifylist'),
        }]
    },
    {
        path: '/newsmanage',
        name: 'newsmanage',
        belongs: TOP.OPERATE_M,
        component: Layout,
        meta: {
            title: '资讯管理',
            icon: 'iconfont icon-zixungoutong',
        },
        children: [{
            path: 'newsList',
            name: "newsList",
            limits: "/api/news/information/list",
            leve: "newsmanage",
            meta: {
                title: '资讯管理',
                icon: 'iconfont icon-zixungoutong',
                routerType: 'leftmenu',
                tracker: 'P1'
            },
            component: () =>
                import('@/page/app/newsmanage/newsList'),
        }]
    },
    {
        path: '/devicemanage',
        name: 'devicemanage',
        belongs: TOP.OPERATE_M,
        component: Layout,
        meta: {
            title: '设备租赁',
            icon: 'iconfont icon-icon',
        },
        children: [{
            path: 'deviceOrderList',
            name: "deviceOrderList",
            limits: "/api/app/device/order/list",
            leve: "devicemanage",
            meta: {
                title: '设备租赁',
                icon: 'iconfont icon-icon',
                routerType: 'leftmenu',
                tracker: 'P1'
            },
            component: () =>
                import('@/page/app/devicemanage/deviceOrderList'),
        }]
    },
    {
        path: '/insuremanage',
        name: 'insuremanage',
        belongs: TOP.OPERATE_M,
        component: Layout,
        meta: {
            title: '保险',
            icon: 'iconfont icon-baoxiandingdan',
        },
        children: [{
            path: 'insureList',
            name: "insureList",
            limits: "/api/app/insure/list",
            leve: "insuremanage",
            meta: {
                title: '投保管理',
                icon: 'iconfont icon-baoxiandingdan',
                routerType: 'leftmenu',
                tracker: 'P1'
            },
            component: () =>
                import('@/page/app/insuremanage/insureList'),
        },
        {
            path: 'compensationList',
            name: "compensationList",
            limits: "/api/app/compensation/list",
            leve: "insuremanage",
            meta: {
                title: '理赔管理',
                icon: 'iconfont icon-jilu',
                routerType: 'leftmenu',
                tracker: 'P1'
            },
            component: () =>
                import('@/page/app/insuremanage/compensationList'),
        }]

    },
    {
        path: '/qualityMonitoring',
        component: Layout,
        name: 'qualityMonitoring',
        meta: {
            title: '温度计盯控',
            icon: 'iconfont icon-wenduji'
        },
        belongs: TOP.QUALIT_M,
        children: [{
            path: 'qualityMonitoringList',
            name: 'qualityMonitoringList',
            limits: "/api/thermometer/monitor/list",
            leve: "qualityMonitoring",
            component: () =>
                import('@/page/qualityMonitoting/qualityMonitoringList'),
            meta: {
                title: '温度计盯控列表',
                icon: 'iconfont icon-noun__cc',
                tracker: 'P2'
            }
        },
        {
            path: 'qualityMonitoringAbnormal',
            name: "qualityMonitoringAbnormal",
            limits: "/api/thermometer/monitor/report/list",
            leve: "qualityMonitoring", // 与一级菜单相关联
            meta: {
                title: '温度计报表',
                icon: 'iconfont icon-abb_temperature_',
                routerType: 'leftmenu',
                tracker: 'P1'
            },
            component: () =>
                import('@/page/qualityMonitoting/qualityMonitoringAbnormal'),
        }
        ]
    },
    {
        path: '/TimeOutwarning',
        component: Layout,
        name: 'TimeOutwarning',
        meta: {
            title: '超时预警',
            icon: 'iconfont icon-yujing'
        },
        belongs: TOP.QUALIT_M,
        children: [{
            path: 'TimeOutwarningList',
            name: 'TimeOutwarningList',
            limits: "/api/overtime/records/list",
            leve: "TimeOutwarning",
            component: () =>
                import('@/page/TimeOutwarning/TimeOutwarningList'),
            meta: {
                title: '超时列表',
                icon: 'iconfont icon-chaoshi',
                tracker: 'P2'
            }
        },
        {
            path: 'TimeOutwarningAbnormal',
            name: 'TimeOutwarningAbnormal',
            limits: "/api/overtime/records/show",
            leve: "TimeOutwarning",
            component: () =>
                import('@/page/TimeOutwarning/TimeOutwarningAbnormal'),
            meta: {
                title: '超时报表',
                icon: 'iconfont icon-pianchaguanli',
                tracker: 'P2'
            }
        },
        {
            path: 'TimeOutsetting',
            name: 'TimeOutsetting',
            limits: "/api/overtime/setting/list",
            leve: "TimeOutwarning",
            component: () =>
                import('@/page/TimeOutwarning/TimeOutsetting'),
            meta: {
                title: '超时配置',
                icon: 'iconfont icon-peizhiguanli',
                tracker: 'P2'
            }
        },
        ]
    },
    {
        path: '/OperationReminder',
        component: Layout,
        name: 'OperationReminder',
        meta: {
            title: '运输单操作提醒',
            icon: 'iconfont icon-UsageBasedInsurance'
        },
        belongs: TOP.QUALIT_M,
        children: [{
            path: 'OperationReminderList',
            name: 'OperationReminderList',
            limits: "/api/quality_operation_reminder/list",
            leve: "OperationReminder",
            component: () =>
                import('@/page/OperationReminder/OperationReminderList'),
            meta: {
                title: '客户默认提醒',
                icon: 'iconfont icon-kehu1',
                tracker: 'P2'
            }
        },
        {
            path: 'costAbnormalList',
            name: 'costAbnormalList',
            limits: "/api/quality_operation_reminder/cost_abnormal_list",
            leve: "OperationReminder",
            component: () =>
                import('@/page/OperationReminder/costAbnormalList'),
            meta: {
                title: '成本异常运单',
                icon: 'iconfont icon-chengbenjilu',
                tracker: 'P2'
            }
        },
        ]
    },
    {
        path: '*',
        redirect: '/404',
        hidden: true
    }
];

/**
 *  路由设置要求：
 * 1、该路由有子菜单,可以设置多层嵌套路由children;如果没有子菜单,不需要设置children;通过item.children.length来判断路由的级数;
 * 2、登录成功后,定位到系统首页时,需要加载页面整体布局组件Layout并进行子路由定向加载;
 * 
 * 按需加载路由组件的2种方法：
 * 1、component: () => import('@/page/login')
 * 2、component:resolve => require(['@/page/fundPosition'], resolve)
 * 
 * 
 * 
 * 什么情况下，路由会定位到404页面?
 * 路由中redirect:'',不起作用？
 * 三级子菜单要在顶部展示？
 * 
 * 
 * 
 */